/*
 * Copyright (c) 2018-2024 老高做毕设 All rights reserved.
 *
 * QQ：1241261419
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.bean.enums;

/**
 * @author laogao
 */
public enum PayType {

	/** 微信支付*/
	WECHATPAY(1,"微信支付"),

	/** "支付宝*/
	ALIPAY(2,"支付宝");

	private Integer num;

	private String payTypeName;

	public Integer value() {
		return num;
	}

	public String getPayTypeName() {
		return payTypeName;
	}

	PayType(Integer num,String payTypeName){
		this.num = num;
		this.payTypeName = payTypeName;
	}

	public static PayType instance(Integer value) {
		PayType[] enums = values();
		for (PayType statusEnum : enums) {
			if (statusEnum.value().equals(value)) {
				return statusEnum;
			}
		}
		return null;
	}
}
